Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Escape sequence</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Escape_sequence"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Escape_sequence rootpage-Escape_sequence skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Escape sequence</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">This article is about sequences of characters that, because of a prefix, have a special meaning, possibly to control peripheral devices. For specialized usages, see <a href="Escape_sequence_(disambiguation)" class="mw-disambig" title="Escape sequence (disambiguation)">Escape sequence (disambiguation)</a>.</div>

<p class="mw-empty-elt">
</p><p>In <a href="Computing" title="Computing">computing</a>, an <b>escape sequence</b> is a sequence of <a href="Character_(computing)" title="Character (computing)">characters</a> that has a special <a href="Semantic" class="mw-redirect" title="Semantic">semantic</a> meaning based on an established convention that specifies an <a href="Escape_character" title="Escape character">escape character</a> prefix in addition to the <a href="Syntax" title="Syntax">syntax</a> of the rest of the <a href="Text_string" class="mw-redirect" title="Text string">text</a> of a sequence.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> A convention can define any particular character code as a sequence prefix. Some conventions use a normal, printable character such as backslash (\) or ampersand (&amp;). Others use a non-printable (a.k.a. control) character such as <a href="ASCII" title="ASCII">ASCII</a> <i>escape</i>.
</p><p>Escape sequences date back at least to the 1874 <a href="Baudot_code" title="Baudot code">Baudot code</a>.<sup id="cite_ref-Economist_2013_3-0" class="reference"><a href="#cite_note-Economist_2013-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Baudot_4-0" class="reference"><a href="#cite_note-Baudot-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-TC304_5-0" class="reference"><a href="#cite_note-TC304-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Examples">Examples</h2></div>
<div class="mw-heading mw-heading3"><h3 id="Data_transmission">Data transmission</h3></div>
<p>A common use of an escape sequence is to remove control characters from a data stream so that it does not cause its control function by mistake. The control character is replaced with an escape character and one or more other subsequent characters. After escaping the normal context in which the control character would have caused an action, the sequence is replaced by the removed character.<sup id="cite_ref-CMD.a_6-0" class="reference"><a href="#cite_note-CMD.a-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> To transmit the escape character itself, two copies are sent.<sup id="cite_ref-IEY_7-0" class="reference"><a href="#cite_note-IEY-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Text_literal">Text literal</h3></div>
<p>An escape sequence is often used in <a href="Character_literal" title="Character literal">character</a> and <a href="String_literal" title="String literal">string</a> literals, to encode characters which are not printable or clash with the syntax of characters or strings. For example, <a href="Control_character" title="Control character">control characters</a> might not be allowed in a source file or may have undesirable side-effects if typed into a command.
</p><p>In <a href="C_(programming_language)" title="C (programming language)">C</a> and many derivative programming languages, a backslash (<code>\</code>) in a <a href="String_literal" title="String literal">string literal</a> marks the beginning of an <a href="Escape_sequences_in_C" title="Escape sequences in C">escape sequence</a>.<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> Common escape sequences include: <a href="Carriage_return" title="Carriage return">carriage return</a> <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\r</code>, <a href="Newline" title="Newline">newline</a> <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\n</code>, <a href="Tab_character" class="mw-redirect" title="Tab character">tab</a> <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\t</code>. To account for the fact that using a printable character for escape causes that character to lose its normal meaning, a sequence of two backslash characters (<code>\\</code>) encodes a single backslash. An escape sequence can also specify a character by its code value. For example, the backslash can be encoded as either <code>\x5c</code> or <code>\134</code> which specify the character code value as <a href="Hexadecimal" title="Hexadecimal">hexadecimal</a> and <a href="Octal" title="Octal">octal</a>, respectively.
</p><p>A backslash immediately followed by a <a href="Newline" title="Newline">newline</a> (which is necessarily outside of a string literal) does not mark an escape sequence. The <a href="C_preprocessor" title="C preprocessor">C preprocessor</a> joins the line with the subsequent line.<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Quoting_escape">Quoting escape</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Further information: <a href="String_literal#Escape_sequences" title="String literal">String literal §&nbsp;Escape sequences</a></div>
<p>When an escape character is needed within a string literal, there are two common strategies:
</p>
<ul><li>Doubled delimiter – For example, <code>'He didn''t do it.'</code>)<sup id="cite_ref-IEY_7-1" class="reference"><a href="#cite_note-IEY-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup></li>
<li>Secondary escape sequence – For example, the <a href="Cmd.exe" title="Cmd.exe">command prompt</a> command <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">echo Cut^&amp;Paste</code> outputs "Cut&amp;Paste" in by escaping the ampersand operator with a caret (<code>^</code>)<sup id="cite_ref-CMD.a_6-1" class="reference"><a href="#cite_note-CMD.a-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup></li></ul>
<p>In C and many related languages, the escape character is the backslash (<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\</code>). The single quotation mark character can be coded as <code>'\''</code> since <code>'''</code> is not valid. As a string literal is <a href="Delimiter" title="Delimiter">delimited</a> by double-quotes (<code>"</code>) the content cannot contain a double-quote unless it is escaped (<code>"\""</code>) or via a sequence that specifies the code of the double-quote character (<code>\x22</code>).
</p><p>In <a href="Perl" title="Perl">Perl</a> or <a href="Python_(programming_language)" title="Python (programming language)">Python 2</a>, the following is invalid syntax:
</p>
<div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"><pre><span class="k">print</span><span class="w"> </span><span class="s">"Nancy said "</span><span class="n">Hello</span><span class="w"> </span><span class="n">World</span><span class="o">!</span><span class="s">" to the crowd."</span>
</pre></div>
<p>This can be fixed by inserted backslash to escape:
</p>
<div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"><pre><span class="k">print</span><span class="w"> </span><span class="s">"Nancy said \"Hello World!\" to the crowd."</span>
</pre></div>
<p>Alternatively, the following uses "\x" to indicate the subsequent two characters are hexadecimal digits; "22" being the hexadecimal ASCII value for double-quote.
</p>
<div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"><pre><span class="k">print</span><span class="w"> </span><span class="s">"Nancy said \x22Hello World!\x22 to the crowd."</span>
</pre></div>
<p><a href="C_(programming_language)" title="C (programming language)">C</a>, <a href="C%2B%2B" title="C++">C++</a>, <a href="Java_(programming_language)" title="Java (programming language)">Java</a>, and <a href="Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a> allow the same two backslash escape styles. <a href="PostScript" title="PostScript">PostScript</a> and <a href="Rich_text_format" class="mw-redirect" title="Rich text format">rich text format</a> (RTF) also use backslash escapes. The <a href="Quoted-printable" title="Quoted-printable">quoted-printable</a> encoding uses the <a href="Equals_sign" title="Equals sign">equals sign</a> as an escape character. <a href="URL" title="URL">URL</a> and <a href="URI" class="mw-redirect" title="URI">URI</a> use <a href="Percent-encoding" title="Percent-encoding">percent-encoding</a> to quote characters with a special meaning, as for non-ASCII characters.
</p>
<div class="mw-heading mw-heading3"><h3 id="ANSI_escape_sequences">ANSI escape sequences</h3></div>
<p>The <a href="VT52" title="VT52">VT52</a> terminal used simple <a href="Digraph_(computing)" class="mw-redirect" title="Digraph (computing)">digraph</a> commands like escape-A. Without the escape character prefix, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">A</code> simply meant the letter <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">A</code>, but as part of the escape sequence <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">escape-A</code>, it had a different meaning. The VT52 also supported parameters. It was not a straightforward control language encoded as substitution.
</p><p>The later <a href="VT100" title="VT100">VT100</a> terminal implemented the more sophisticated <a href="ANSI_escape_sequences" class="mw-redirect" title="ANSI escape sequences">ANSI escape sequences</a> standard (now ECMA-48) for functions such as controlling cursor movement, character set, and display enhancements. The <a href="HP_2640" title="HP 2640">HP 2640</a> series had perhaps the most elaborate escape sequences for block and character modes, programming keys and their soft labels, graphics vectors, and even saving data to tape or disk files.
</p><p>In <a href="Windows" class="mw-redirect" title="Windows">Windows</a> (and older <a href="DOS" title="DOS">DOS</a>), a utility, <a href="ANSI.SYS" title="ANSI.SYS">ANSI.SYS</a>,<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> can be used to enable ANSI escape sequence support. In DOS via <code>$e</code> in the <a href="PROMPT_(DOS_command)" class="mw-redirect" title="PROMPT (DOS command)">PROMPT</a> command), and in 16-bit Windows via a command window. In <a href="Unix" title="Unix">Unix</a> and <a href="Unix-like" title="Unix-like">Unix-like</a> systems, the ANSI escape sequences are generally supported by the <a href="Shell_(computing)" title="Shell (computing)">shell</a>. The rise of <a href="GUI" class="mw-redirect" title="GUI">GUI</a> applications has reduced the use of escape sequences, yet the ability to provide full-screen, text-based applications is still available.
</p>
<div class="mw-heading mw-heading2"><h2 id="Related">Related</h2></div>
<div class="mw-heading mw-heading3"><h3 id="Control_sequence">Control sequence</h3></div>
<p>A control sequence is a sequence of characters that changes the <a href="State_(computer_science)" title="State (computer science)">state</a> of a computer <a href="Peripheral" title="Peripheral">peripheral</a> instead of conveying the normal information that the characters represent. In an ANSI escape sequence, the escape sequence prefix, called <a href="Control_Sequence_Introducer" class="mw-redirect" title="Control Sequence Introducer">control sequence introducer</a>, can be either ASCII ESC (decimal 27) followed by <code>[</code> or CSI (decimal 155). Notable systems that did not use an escape character for control sequences include:
</p>
<ul><li>The <a href="Hayes_command_set" class="mw-redirect" title="Hayes command set">Hayes command set</a> defines a control sequence, <code><a href="%2B%2B%2B_(modem)" class="mw-redirect" title="+++ (modem)">+++</a></code> that is <a href="Mode_(user_interface)" title="Mode (user interface)">modal</a>; switching from command to online mode. To ensure that the sequence is interpreted as a control sequence instead of embedded in content, the sender stops communication for one second before and after sending <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">+++</code>. When the modem detects condition, it switches from normal mode (sending characters to the phone) to a command mode in which the data is interpreted a command. Sending the O command switches back to the normal mode.<sup id="cite_ref-Modem_2011_12-0" class="reference"><a href="#cite_note-Modem_2011-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Modem_Programming_13-0" class="reference"><a href="#cite_note-Modem_Programming-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Hayes_14-0" class="reference"><a href="#cite_note-Hayes-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-CISCO_15-0" class="reference"><a href="#cite_note-CISCO-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup></li>
<li><a href="Data_General" title="Data General">Data General</a> terminal control sequences,<sup id="cite_ref-Data_General_Terminals_16-0" class="reference"><a href="#cite_note-Data_General_Terminals-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Kermit_17-0" class="reference"><a href="#cite_note-Kermit-17"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-DG210_18-0" class="reference"><a href="#cite_note-DG210-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> but they often were still called escape sequences, and the very common use of "escaping" special characters in programming languages and command-line parameters today often use the "backslash" character to begin the sequence.</li></ul>
<p>Escape sequences in communications are commonly used when a computer and a peripheral have only a single channel through which to send information back and forth (so escape sequences are an example of <a href="In-band_signaling" title="In-band signaling">in-band signaling</a>).<sup id="cite_ref-Dict_19-0" class="reference"><a href="#cite_note-Dict-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Terminal_Handbook_20-0" class="reference"><a href="#cite_note-Terminal_Handbook-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup> They were common when most <a href="Dumb_terminals" class="mw-redirect" title="Dumb terminals">dumb terminals</a> used <a href="ASCII" title="ASCII">ASCII</a> with 7 data bits for communication, and sometimes would be used to switch to a different character set for "foreign" or graphics characters that would otherwise been restricted by the 128 codes available in 7 data bits. Even relatively "dumb" terminals responded to some escape sequences, including the original mechanical Teletype printers (on which "glass Teletypes" or VDUs were based) responded to characters 27 and 31 to alternate between letters and figures modes.
</p>
<div class="mw-heading mw-heading3"><h3 id="Esc_key">Esc key</h3></div>
<p>Many <a href="Computer_keyboard" title="Computer keyboard">computer keyboards</a> have an <a href="Esc_key" title="Esc key">Esc key</a> (where <i>Esc</i> is short for <i>escape</i>) even though it is generally not used for entering an escape sequence. The <a href="Vi_(text_editor)" title="Vi (text editor)">vi text editor</a> uses the key to exit from input mode.<sup id="cite_ref-VI_21-0" class="reference"><a href="#cite_note-VI-21"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup> Some application use the key to cancel an operation or navigate up a level of a nested context.<sup id="cite_ref-PCWorld_2009_22-0" class="reference"><a href="#cite_note-PCWorld_2009-22"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="Format_(Common_Lisp)" title="Format (Common Lisp)">Format (Common Lisp)</a>&nbsp;– Common Lisp function that produces formatted text</li>
<li><a href="Printf_format_string" class="mw-redirect" title="Printf format string">printf format string</a>&nbsp;– C function to format and output text<span style="display:none" class="category-annotation-with-redirected-description">Pages displaying short descriptions of redirect targets</span></li>
<li><a href="Stropping_(syntax)" title="Stropping (syntax)">stropping (syntax)</a>&nbsp;– Method in computer language design</li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.spss-tutorials.com/escape-sequence/">"Escape Sequence (General Concept)"</a>.</cite></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/tutorial/java/data/characters.html">"Characters"</a>. <i>The Java Tutorials</i>.</cite></span>
</li>
<li id="cite_note-Economist_2013-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-Economist_2013_3-0">^</a></b></span> <span class="reference-text"><cite class="citation magazine cs1"><a rel="nofollow" class="external text" href="https://www.economist.com/the-economist-explains/2013/06/09/what-is-ascii">"What is ASCII? The Economist explains"</a>. <i><a href="The_Economist" title="The Economist">The Economist</a></i>. 2013-06-09.</cite></span>
</li>
<li id="cite_note-Baudot-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-Baudot_4-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://rabbit.eng.miami.edu/info/baudot.html">"Baudot and CCITT code"</a>. <q>The Baudot code, invented in 1870 and patented in 1874 by J. Baudot is […]</q></cite></span>
</li>
<li id="cite_note-TC304-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-TC304_5-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.open-std.org/CEN/TC304/guidecharactersets/Annexa.doc">"Guide to the use of Character Sets in Europe"</a>. <q>elements C0 and C1 of control characters […] a 5-bit code patented by Jean-Maurice-Emile Baudot (1845-1903) in 1874</q></cite></span>
</li>
<li id="cite_note-CMD.a-6"><span class="mw-cite-backlink">^ <a href="#cite_ref-CMD.a_6-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-CMD.a_6-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://technet.microsoft.com/en-us/library/cc723564.aspx">"The Windows NT Command Shell"</a>. 20 February 2014.</cite></span>
</li>
<li id="cite_note-IEY-7"><span class="mw-cite-backlink">^ <a href="#cite_ref-IEY_7-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-IEY_7-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://docs.oracle.com/cd/E19957-01/805-4939/z40007438613/index.html">"Apostrophe Editing ('aaa') (FORTRAN 77 Language Reference)"</a>. <q>Within the field, two consecutive apostrophes […]</q></cite></span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://msdn.microsoft.com/en-us/library/h21280bw.aspx">"Escape Sequences"</a>. 3 August 2021. <q>Character combinations consisting of a backslash <code>\</code> followed by a letter or by a combination of digits are called <i>escape sequences</i>.</q></cite></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.cbclx01/escape.htm">"Escape sequences"</a>. <i><a href="IBM" title="IBM">IBM</a></i>.</cite></span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1570.pdf#page=29">"ISO/IEC 9899:201x Committee Draft N1570"</a> <span class="cs1-format">(PDF)</span>. <q>5.1.1.2 Translation phases, 2.: Each instance of a backslash character (<code>\</code>) immediately followed by a new-line character is deleted, splicing physical source lines to form logical source lines. [...]</q></cite></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.oreilly.com/library/view/special-edition-using/0789725738/ch17.html">"17. Understanding ANSI.SYS - Special Edition Using MS-DOS® 6.22, Third Edition [Book]"</a>. <i>www.oreilly.com</i>.</cite></span>
</li>
<li id="cite_note-Modem_2011-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-Modem_2011_12-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.modemhelp.net/basicatcommand.shtml">"Basic Hayes AT Command Set"</a>. 2011-02-05. <q>+++ - "Escape Sequence" - This command initiates an escape sequence to return the modem to the on-line command mode</q></cite></span>
</li>
<li id="cite_note-Modem_Programming-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-Modem_Programming_13-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.activexperts.com/serial-port-component/tutorials/modem">"Modem Programming Basics"</a>. <q>When a modem is in command mode, the modem can accept commands from you</q></cite></span>
</li>
<li id="cite_note-Hayes-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-Hayes_14-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.perle.com/support_services/documentation_pdfs/5500158.pdf">"Chapter 5 – AT Commands"</a> <span class="cs1-format">(PDF)</span>.</cite></span>
</li>
<li id="cite_note-CISCO-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-CISCO_15-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.cisco.com/c/en/us/td/docs/routers/access/2600/software/notes/analogat.html">"AT Command Set and Register Summary for Analog Modem Modules"</a>. <i>Cisco</i>.</cite></span>
</li>
<li id="cite_note-Data_General_Terminals-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-Data_General_Terminals_16-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="ftp://ftp.invisible-island.net/shuford/terminal/data_general_news.txt">"Data General terminals: discussion of"</a>. <i>FTP server</i> (<a href="FTP" class="mw-redirect" title="FTP">FTP</a>).</cite> <span style="font-size:0.95em; font-size:95%; color: var( --color-subtle, #555 )">(To view documents see Help:FTP)</span></span>
</li>
<li id="cite_note-Kermit-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-Kermit_17-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.kermitproject.org/terminals.html">"What's a Terminal?"</a>. <i>www.kermitproject.org</i>.</cite></span>
</li>
<li id="cite_note-DG210-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-DG210_18-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.hilgraeve.com/knowledge_base/dg210-dg211-emulation/">"Data General DG210 DG211 Terminal Emulation Software"</a>.</cite></span>
</li>
<li id="cite_note-Dict-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-Dict_19-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www6.dict.cc/wp_examples.php?lp_id=1%26lang=en%26s=escape%2520sequence">"Escape sequence"</a>.</cite></span>
</li>
<li id="cite_note-Terminal_Handbook-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-Terminal_Handbook_20-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://vt100.net/docs/tp83/glossary.html">"Terminals &amp; Printers Handbook Glossary"</a>. <i>vt100.net</i>.</cite></span>
</li>
<li id="cite_note-VI-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-VI_21-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.eng.buffalo.edu/~yearke/unix/vi12.shtml">"Twelve Useful "vi" Commands"</a>. <q>vi commands […] Pressing the Esc (Escape) key is how you […]</q></cite></span>
</li>
<li id="cite_note-PCWorld_2009-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-PCWorld_2009_22-0">^</a></b></span> <span class="reference-text"><cite class="citation magazine cs1"><a rel="nofollow" class="external text" href="https://www.pcworld.com/article/174661/article.html">"Five Unexpected Uses for the Esc Key"</a>. <i><a href="PCworld" class="mw-redirect" title="PCworld">PCworld</a></i>. 2009-10-29.</cite></span>
</li>
</ol></div></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-07-06" href="https://en.wikipedia.org/wiki/?title=Escape_sequence&amp;oldid=1299053604">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>